{include file="header.html"}
<div id="main" class="w-full">
    <div id="page-cashier" class="w">
        {include file="curlocal.html"}
        <div class="online clearfix border mt10 mb20">
            <!--{if $payment.payment_code eq 'epayalipay' or $payment.payment_code eq 'epayalipaywap'}-->
            {$payform}
            <!--{elseif $payment.payment_code eq 'epaywxnative'}-->
            <!--{if $payform.code_url}-->
            <div class="epaywxnative">

                <script>
                    setInterval("check_payment()", 2000);
                    function check_payment()
                    {
                        var url = SITE_URL+'/index.php?app=paynotify&act=returnwx&order_sn={$payform.order_sn}';
                        $.get(url, function(result) {
                            if (result == '1') {
                                self.location = SITE_URL+"/index.php?app=account_log&act=logall";
                            } else if (result == '2') {
                                self.location = SITE_URL+"/index.php?app=buyer_order";
                            } else {
                                
                            }
                        });
                    }
                </script>
                <img alt="{$lang.model_qrcode_scan}" src="/qrcode.php?data={$payform.code_url}"/>
                <div class="payinfo">{$lang.wechat_scan_pay}</div>
            </div>
            <!--{else}-->
            <div class="epaywxnative">
                <div class="payinfo">{$lang.fail_to_create_QR_code}</div>
            </div>
            <!--{/if}-->
            <!--{elseif $payment.payment_code eq 'epaywxjs'}-->
            <div class="epaywxjs">
                {$lang.pc_not_approve}
            </div>
            <!--{/if}-->
        </div>
    </div>
</div>
{include file=server.html}
{include file="footer.html"}
